﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ShevaEngine.Core.Foundation
{
    /// <summary>
    /// Configurations.
    /// </summary>
    public class Configurations
    {
        /// <summary>
        /// Method loads configurations data.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="type"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        public static T Load<T>(string name)
        {
            return ShevaEngine.Instance.Content.Load<Dictionary<string, T>>("Configurations\\" + typeof(T).Name)[name];
        }
    }
}
